import http from './index'

export default {
  // 请求示例
  postEvent(data) {
    return new Promise((resolve, reject) => {
      http('post', '/event', data).then(
        (response) => {
          //关闭进度条
          resolve(response.data)
        },
        (err) => {
          reject(err)
        }
      )
    })
  },
}
